package com.groupbuying.storeinternal.dao;
import com.groupbuying.storeinternal.domain.StoreMainInfoDO;
import com.groupbuying.storeinternal.utils.Query;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 商户主信息
 * @author wenguoqiang
 * @email 17081@mengtaigroup.com
 * @date 2019-01-24 10:31:25
 */
@Mapper
@Repository
public interface StoreMainInfoDao {

	StoreMainInfoDO get(String uuid);
	
	List<StoreMainInfoDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(StoreMainInfoDO storeMainInfo);
	
	int update(StoreMainInfoDO storeMainInfo);
	
	int remove(String uuid);
	
	int batchRemove(String[] uuids);

    int updateByChainStoresUuid(Map<String, Object> map);

	/**
	 * 查询优店列表
	 * @param query
	 * @return
	 */
	List<StoreMainInfoDO> getCrossUShopList(Query query);

	/**
	 * 查询优店列表数量
	 * @param query
	 * @return
	 */
	int getCrossUShopListCount(Query query);

	List<Map<String, String>> getUuidAndStoreName();
}
